This isn't related to your question, but you want to use = and not <- within the function call. If you use <-, you'll end up creating variables y1 and y2 in whatever environment you're working in:

d1 <- data.frame(y1 <- c(1, 2, 3), y2 <- c(4, 5, 6))
y1
# [1] 1 2 3
y2
# [1] 4 5 6

This won't have the seemingly desired effect of creating column names in the data frame:

d1
#   y1....c.1..2..3. y2....c.4..5..6.
# 1                1                4
# 2                2                5
# 3                3                6

The = operator, on the other hand, will associate your vectors with arguments to data.frame.

As for your question, making a list of data frames is easy:

d1 <- data.frame(y1 = c(1, 2, 3), y2 = c(4, 5, 6))
d2 <- data.frame(y1 = c(3, 2, 1), y2 = c(6, 5, 4))
my.list <- list(d1, d2)

You access the data frames just like you would access any other list element:

my.list[[1]]
#   y1 y2
# 1  1  4
# 2  2  5
# 3  3  6

数据框(data.frame)

https://www.math.pku.edu.cn/teachers/lidf/docs/statsoft/html/s/06.html

它是一种特殊的列表对象,有一个值为“data.frame”的class 属性,各列表成员必须是向量(数值型、字符型、逻辑型)、因子、数值型矩阵、列表,或其它数据框。向量、因子成员 ...

r - How do I make a list of data frames? - Stack Overflow

https://stackoverflow.com/questions/17499013/how-do-i-make-a-list-of-data-frames

The other answers show you how to make a list of data.frames when you already have a bunch of data.frames, e.g., d1 , d2 , .... Having sequentially named ...

R中的列表(list)和数据框(data.frame)有什么区别? - 知乎

https://www.zhihu.com/question/23119559

list 是一种一般的数据结构,而data.frame 是一种特殊的list。list 的每个分量可以在长度、类型上完全不一样,就像一组指针指向了一堆不同的变量。

Pandas将列表(List)转换为数据框(Dataframe)_Claroja的博客 ...

https://blog.csdn.net/claroja/article/details/64439735

2017年3月21日 ... Python中将列表转换成为数据框有两种情况:第一种是两个不同列表转换成一个数据框,第二种是一个包含不同子列表列表转换成为数据框

python - Get a list from Pandas DataFrame column headers - Stack ...

https://stackoverflow.com/questions/19482970/get-a-list-from-pandas-dataframe-column-headers

I want to get a list of the column headers from a Pandas DataFrame. The DataFrame will come from user input, so I won't know how many columns there will be ...

【R语言】数据结构Ⅱ—列表,数据框,因子- 知乎

https://zhuanlan.zhihu.com/p/59467880

2019年3月16日 ... 【R语言】数据结构Ⅱ—列表,数据框,因子. 3 年前· 来自专栏R&Python数据科学. 四、列表. 列表(list),可以包含不同 ...

R中的列表数据框_bjfu_stat的博客-CSDN博客

https://blog.csdn.net/bjfu_stat/article/details/48806321

2015年9月29日 ... 但是数据框有更一般的定义。它是一种特殊的列表对象,有一个值为”data.frame”的class属性,各列表成员必须是向量(数值型、字符型、逻辑型)、因子、 ...

R语言基础知识——子集的提取(2)

http://www.360doc.com/content/16/0203/09/3852985_532436513.shtml

2016年2月3日 ... 2、“[[” 双层方括号,用来从列表(list)或数据框(data frame)中提取元素;也可从列表数据框中提取单个元素,且返回对象的类型可以不为列表数据框;.

How to Create and Manipulate Lists and Data frames in R

https://www.futurelearn.com/courses/linux-for-bioinformatics/0/steps/200634

A Data frame is simply a List of a specified class called “data.frame”, but the components of the list must be vectors (numeric, character, logical), ...

Intro to data structures — pandas 1.4.2 documentation

https://pandas.pydata.org/docs/user_guide/dsintro.html

If you are using Python < 3.6 or pandas < 0.23, and columns is not specified, the DataFrame columns will be the lexically ordered list of dict keys.

【R语言新书】1.3 数据结构Ⅱ:列表数据框、因子- 知乎

https://zhuanlan.zhihu.com/p/203738481

2020年8月28日 ... 例如,用R 拟合一个线性回归模型,其返回结果就是一个列表,其中包含了线… ... 【R语言新书】1.3 数据结构Ⅱ:列表数据框、因子.

Data structures · Advanced R.

http://adv-r.had.co.nz.s3-website-us-west-2.amazonaws.com/Data-structures.html

Can a data frame have a column that is a matrix? Outline. Vectors introduces you to atomic vectors and lists, R's 1d data structures.

Data wrangling: dataframes, matrices, and lists | Introduction to R ...

https://hbctraining.github.io/Intro-to-R/lessons/05_introR-data-wrangling2.html

We can then use the logical vector to return all of the rows in a dataframe where those values are TRUE. idx <- metadata$celltype == ...